feat: add redb as an alternative to sqlite#206
Conversation
tvpeter
left a comment
There was a problem hiding this comment.
I have not tested but I left a few comments.
I think it is a good idea to leave sqlite as the default db. Users can compile with no default features if they want to use redb. But when you open the PR, I will test it properly to have a better opinion.
In the meantime, a good job so far.
Pull Request Test Coverage Report for Build 17216612833Details
💛 - Coveralls |
Made sqlite a default feature again. |
tvpeter
left a comment
There was a problem hiding this comment.
Great job, @110CodingP!
Your implementation looks great. I've left a few comments. Once you make the updates, I will test it.
tvpeter
left a comment
There was a problem hiding this comment.
tACK 26d7e8b
Weldone @110CodingP, I have tested and everything seems to work fine.
Kindly squash your commits into two or three at most, then I will approve.
Thank you.
Since the user does not need to know about how commands are being handled.
|
Rebased! |
notmandatory
left a comment
There was a problem hiding this comment.
utACK 83e6dd6
Will be handy having this in bdk-cli for testing and as an example for how to use redb with bdk_wallet.
Description
We currently only support
sqlitepersistence. This PR adds an alternativeredbpersistence by leveraging Summer Of Bitcoin work onbdk_redb.Notes to the reviewers
The CI does not pass since
bdk_redbhas a MSRV of 1.85.0 which is in turn due toredb. Alsobdk_redbis yet to published as a crate so currently we use the GitHub version of the same.The following script tests a simple scenario of creating a wallet with bitcoind-rpc as chain source , sending funds to an address controlled by the wallet and creating a transaction using the wallet:
the conf is as follows:
Also removedsqlitefrom default features since we now have an alternative.Changelog notice
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
CHANGELOG.md